Skip to content

feat: add Rust HTTP server module to fastled-cli (#45) - #46

Merged
zackees merged 1 commit into
mainfrom
feat/live-build-stream
Apr 12, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/live-build-stream

Conversation

@zackees

@zackees zackees commented Apr 12, 2026

Copy link
Copy Markdown
Member

Summary

Scaffolds an axum-based HTTP server in the Rust CLI that will replace Flask for serving compiled FastLED output. This PR adds the server module only — wiring it into the main flow is the next step.

What's in this PR

  • New crates/fastled-cli/src/server.rs — HTTP static file server with:
    • Built-in loading page (shown while compilation is in progress)
    • Frontend polls /build-status.json and auto-refreshes on success
    • COOP/COEP headers for SharedArrayBuffer
    • No-cache headers
    • Directory traversal protection
    • MIME type detection for JS, WASM, CSS, HTML, fonts, etc.
  • Workspace deps: tokio, axum, tower-http
  • Module registered in main.rs but not yet called (dead_code allowed)

Next steps (separate PRs)

  • Wire start_server() into main CLI flow
  • Remove Flask from Python dependencies
  • Point Tauri viewer at Rust server URL

Ref #45

Scaffold axum-based HTTP server that serves compiled FastLED output
with COOP/COEP headers and a built-in loading page for live build
streaming. Not yet wired into the main CLI flow.

Adds workspace deps: tokio, axum, tower-http
@zackees
zackees merged commit b2063b7 into main Apr 12, 2026
25 checks passed
@zackees
zackees deleted the feat/live-build-stream branch April 12, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant